package com.wonders.frame.repository;

import com.wonders.frame.entity.HuiAreas;
import com.wonders.frame.repository.core.CoreRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HuiAreasRepository extends CoreRepository<HuiAreas> {

    List<HuiAreas> findBypId(String pid);

    @Query(nativeQuery = true, value = "select * from hui_areas order by seq desc ")
    List<HuiAreas> findAllOrderBySeq();
}
